<?php

class UserCaroselController extends Controller
{
    public function actionGetCaroselList()
    {

        try
        {
            //参数验证


            //获取轮播图列表
            $searchsql= Util::initSearchSql();

            $type = Util::getParamNotEmpty("type");

            $searchsql = Util::getSerarchStr($searchsql, "type", "type"); //手机号

            //排序
            $searchsql = $searchsql." order by priority  asc";


            //获取list
            $list = UcCarousel::model()->findAll($searchsql);


            //返回数据
            Util::responseList(count($list),$list);


        }catch (Exception $e)
        {
            Util::responseErrorMsg($e->getMessage());

        }
    }
}